//
//  YPLoginLoginPage_vc.swift
//  YPSwift
//  登录-页面
//  Created by ogawa on 2020/5/9.
//  Copyright © 2020 ogawa. All rights reserved.
//

import Foundation

class YPLoginLoginPage_vc: YPCoreBase_vc {

    /****************************Storyboard UI设置区域****************************/
    @IBOutlet weak var username_tf: UITextField!
    @IBOutlet weak var password_tf: UITextField!
    @IBOutlet weak var login_btn: UIButton!
    @IBOutlet weak var forget_btn: UIButton!
    
    @IBOutlet weak var rember_btn: UIButton!
    @IBOutlet weak var register_btn: UIButton!
    @IBOutlet weak var indicator_v: UIActivityIndicatorView!
    
    var manageVm: YPLoginLogin_vm?
    var present:Bool = false
    
    
    override func viewDidLoad() {
       super.viewDidLoad()
    }
   
    override func viewWillAppear(_ animated: Bool) {
       super.viewWillAppear(animated)
    }
   
    override func viewWillDisappear(_ animated: Bool) {
       super.viewWillDisappear(animated)
    }
   
    override func didReceiveMemoryWarning() {
       super.didReceiveMemoryWarning()
    }
       
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
          
    }
    
    /**
     界面基础设置
     */
    override func makeUI() {
        //login_btn.loginTheme()
        
    }

    /**
     app 主题 设置
     */
    override func setViewTheme() {
        
    }
    
    
    /**
     自定义leftBarButtonItem
     */
    override func customLeftBarButtonItem() {
        
        if self.present {
            self.navigationItem.leftBarButtonItem = UIBarButtonItem(image: UIImage(named: "iconclose", in: YPLoginCore.bundle, compatibleWith: nil), style: .plain, target: self, action: #selector(closeVc))
        }
    }
    
    @objc func closeVc() -> Void {
        self.dismiss(animated: true, completion: nil)
    }
    
}

// MARK: - 自定义方法
extension YPLoginLoginPage_vc{
    
    
}
